#include <string>
#include "NotifyProc.h"
#include "GlobalContext.h"

using namespace std;

void NotifyProc(NOTIFYID error,const char *message)
{
	HWND wnd=GlobalContext::Instance().NotifyWindow();
	if(wnd!=NULL)
	{
		string *msg=new string(message);
		::PostMessage(wnd,WM_TRANS_NOTIFY,error,reinterpret_cast<LPARAM>(msg));
	}
}